package top.infopub.model.cap;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author Warking
 * @Date 2021/5/24 9:42
 * @Version 1.0 借款合同
 */
public class LoanContract extends  PublicInstance{
    /*融资期限 FINANCING_DEADLINE*/
    private String financingDeadline;
    /*融资方式 FINANCING_STYLE*/
    private String financingStyle;
    /*还款方式 REPAYMENT_STYLE*/
    private String repaymentStyle;
    /*借款日期 BORROW_DATE*/
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone="GMT+8")
    private Date borrowDate;
    /*借款到期日期 BORROW_EXPIRE_DATE*/
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone="GMT+8")
    private Date borrowExpireDate;
    /*综合成本 EMBEDDED_COST*/
    private String embeddedCost;
    /*融资成本 FINANCING_COST */
    private String financingCost;
    /*批复总金额 REPLY_AMT*/
    private BigDecimal replyAmt;
    /*拟提用总金额 TOTAL_AMOUNT_PROPOSED*/
    private BigDecimal totalAmountProposed;
    /*拟提授信金额 AMOUNT_CREDIT_EXTENSION*/
    private BigDecimal amountCreditExtension;
    /*合同总金额 SUM_AMT*/
    private BigDecimal sumAmt;
    /*附件*/
    private String fileAtt[];

    //需要返回前端
    //融资主体
    private String sgCoopId;
    //融资(团队)负责人
    private String leader;
    //金融类型
    private String capType;
    /*增信方式*/
    private String bailMode;

    public String getCapType() {
        return capType;
    }

    public void setCapType(String capType) {
        this.capType = capType;
    }

    public String getBailMode() {
        return bailMode;
    }

    public void setBailMode(String bailMode) {
        this.bailMode = bailMode;
    }

    public String getSgCoopId() {
        return sgCoopId;
    }

    public void setSgCoopId(String sgCoopId) {
        this.sgCoopId = sgCoopId;
    }

    public String getLeader() {
        return leader;
    }

    public void setLeader(String leader) {
        this.leader = leader;
    }

    public BigDecimal getSumAmt() {
        return sumAmt;
    }

    public void setSumAmt(BigDecimal sumAmt) {
        this.sumAmt = sumAmt;
    }

    public BigDecimal getReplyAmt() {
        return replyAmt;
    }

    public void setReplyAmt(BigDecimal replyAmt) {
        this.replyAmt = replyAmt;
    }

    public String getFinancingDeadline() {
        return financingDeadline;
    }

    public void setFinancingDeadline(String financingDeadline) {
        this.financingDeadline = financingDeadline;
    }

    public String getFinancingStyle() {
        return financingStyle;
    }

    public void setFinancingStyle(String financingStyle) {
        this.financingStyle = financingStyle;
    }

    public String getRepaymentStyle() {
        return repaymentStyle;
    }

    public void setRepaymentStyle(String repaymentStyle) {
        this.repaymentStyle = repaymentStyle;
    }

    public Date getBorrowDate() {
        return borrowDate;
    }

    public void setBorrowDate(Date borrowDate) {
        this.borrowDate = borrowDate;
    }

    public Date getBorrowExpireDate() {
        return borrowExpireDate;
    }

    public void setBorrowExpireDate(Date borrowExpireDate) {
        this.borrowExpireDate = borrowExpireDate;
    }

    public String getEmbeddedCost() {
        return embeddedCost;
    }

    public void setEmbeddedCost(String embeddedCost) {
        this.embeddedCost = embeddedCost;
    }

    public String getFinancingCost() {
        return financingCost;
    }

    public void setFinancingCost(String financingCost) {
        this.financingCost = financingCost;
    }

    public BigDecimal getTotalAmountProposed() {
        return totalAmountProposed;
    }

    public void setTotalAmountProposed(BigDecimal totalAmountProposed) {
        this.totalAmountProposed = totalAmountProposed;
    }

    public BigDecimal getAmountCreditExtension() {
        return amountCreditExtension;
    }

    public void setAmountCreditExtension(BigDecimal amountCreditExtension) {
        this.amountCreditExtension = amountCreditExtension;
    }

    public String[] getFileAtt() {
        return fileAtt;
    }

    public void setFileAtt(String[] fileAtt) {
        this.fileAtt = fileAtt;
    }
}
